Skip to content

How to skip nuget.config - #154039

Merged
zooba merged 3 commits into
python:mainfrom
ukanuk:patch-1
Aug 25, 2026
Merged

How to skip nuget.config#154039
zooba merged 3 commits into
python:mainfrom
ukanuk:patch-1

Conversation

@ukanuk

@ukanuk ukanuk commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Developers who do not already have nuget and do not need to write a nuget.config file can use this one extra command to let nuget find the python package in the official repository.

ukanuk added 2 commits July 18, 2026 19:22
Developers who do not already have nuget and do not need to write a nuget.config file can use this one extra command to let nuget find the python package in the official nuget repository.
Developers who do not already have nuget and do not need to write a nuget.config file can use this one extra command to let nuget find the python package in the official nuget repository.
@python-cla-bot

python-cla-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

read-the-docs-community Bot commented Jul 19, 2026

Copy link
Copy Markdown

@tomasr8
tomasr8 requested a review from a team July 19, 2026 09:14
@zooba

zooba commented Jul 20, 2026

Copy link
Copy Markdown
Member

This documentation doesn't relate to the issue you've linked.

I'm not totally opposed to having troubleshooting for Nuget configurations here, but it's not really our responsibility, so we should move it to the end of the section. It should also be written for casual human readers, not contributors, so the language needs to be expanded slightly and include a bit more context for when the error may occur.

We should also remove the reference to gh-114073 from the bug title and eventual commit message (this is our responsibility, not the PR author's), so that people don't confuse this section for build instructions in the future.

@ukanuk

ukanuk commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Oh you're right, I misunderstood what that issue was about. I thought it was for building software using a nuget-provided python executable. That issue helped me realize why nuget wasn't getting python for me.

To summarize my reading of the current instructions in that section, it is:

  1. If you want a minimal executable, you can use nuget
  2. To use it, download https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
  3. Then run nuget.exe install python -ExcludeVersion -OutputDirectory .

For me, those minimal steps missed step 2.5 to run nuget.exe sources add -Name "nuget.org" -source "https://api.nuget.org/v3/index.json"

I didn't write my PR as a new step 2.5 in case there's other ways to install nuget which already come with sources pre-configured.

@zooba

zooba commented Jul 23, 2026

Copy link
Copy Markdown
Member

Yeah, I think in most cases Nuget's defaults will work, and it's only in some strange cases (most likely because something has modified Nuget's settings previously) where you need to restore the defaults.

As I said, putting it last in that section as a potential troubleshooting step is fine, but our main instructions shouldn't be interrupted by it (e.g. where it's written right now is an interruption).

Developers who do not already have nuget and do not need to write a nuget.config file can use this one extra command to let nuget find the python package in the official nuget repository.
@ukanuk ukanuk changed the title gh-114073: How to skip nuget.config How to skip nuget.config Aug 4, 2026
@ukanuk

ukanuk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

As requested, I've moved text to end of the section and removed gh-114073 issue title link.

@ukanuk

ukanuk commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

@zooba did you want me to create a different issue so it's not failing that 1 required check? No rush, I just want to confirm you're not waiting on me for anything.

@zooba

zooba commented Aug 25, 2026

Copy link
Copy Markdown
Member

Nah, it's a trivial docs update, we don't need an issue for it. Thanks!

@zooba
zooba merged commit 223ee6d into python:main Aug 25, 2026
31 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 25, 2026
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants